package model

import (
	"gorm.io/gorm"
)

type BaseResume struct {
	gorm.Model
	Name           string `gorm:"column:name;not null"`
	Age            int    `gorm:"column:age;not null"`
	Sex            string `gorm:"column:sex;not null"`
	HouseKeepingId int    `gorm:"column:owner_id;not null"`
	WorkExp        string `gorm:"column:work_exp;not null"`
	Describe       string `gorm:"column:describe;not null"`
	Reword         int    `gorm:"column:reword;not null"`
	ResumePath     string `gorm:"column:resume_file_path;not null"`
}
type Resume struct {
	BaseResume
	HouseKeeping HouseKeeping `gorm:"ForeignKey:HouseKeepingId;AssociationForeignKey:ID"`
}
